package com.example.webviewexample;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class WebSourceFragment extends Fragment {

    private TextView mTextViewSource;

    @Override
    public View onCreateView(LayoutInflater inflater,
            @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.view_source_web_source,
                container, false);
        if (view != null) {
            mTextViewSource = (TextView) view.findViewById(R.id.source);
        }

        return view;
    }

    public void setText(String text) {
        mTextViewSource.setText(text);
    }
}
